package com.zx.onstartup;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import com.zx.service.HelloService;

@Component
public class StartUp1 implements CommandLineRunner {

	@Autowired
	HelloService helloService;
	
	@Override
	public void run(String... args) throws Exception {

		System.out.println("==============run StartUp1===================");
		helloService.sayHello();
	}

}
